package com.ruoyi.project.system.interact.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 绘声绘影评论对象 dj_graphic_comment
 * 
 * @author ruoyi
 * @date 2023-07-01
 */
public class DjGraphicComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long id;

    /** 动态ID */
    @Excel(name = "动态ID")
    private Long dynamicId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论时间 */
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    /** 审核标志（0-待审核，1-通过，2-拒绝） */
    @Excel(name = "审核标志", readConverterExp = "0=待审核,1=通过,2=拒绝")
    private Integer auditFlag;

    /** 删除标志（0-正常，1-删除） */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDynamicId(Long dynamicId) 
    {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId() 
    {
        return dynamicId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setAuditFlag(Integer auditFlag) 
    {
        this.auditFlag = auditFlag;
    }

    public Integer getAuditFlag() 
    {
        return auditFlag;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dynamicId", getDynamicId())
            .append("username", getUsername())
            .append("avatar", getAvatar())
            .append("content", getContent())
            .append("commentTime", getCommentTime())
            .append("auditFlag", getAuditFlag())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 